

package com.hazelcast.durableexecutor;

import java.util.concurrent.CompletionStage;
import java.util.concurrent.Future;

/**
 * A Future where one can obtain the task ID for tracking the response.
 *
 * @param <V> The result type returned by this Future's {@code get} method
 */
public interface DurableExecutorServiceFuture<V> extends CompletionStage<V>, Future<V> {

    /**
     * A unique ID for the executing task
     *
     * @return the task ID
     */
    long getTaskId();
}
